package com.csdj.t309springboot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.csdj.t309springboot.entity.User;
import com.csdj.t309springboot.entity.UserExample;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface UserMapper extends BaseMapper<User> {
    long countByExample(UserExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    List<User> selectByExample(UserExample example);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
}